import Vue from 'vue'
import App from './App.vue'
import router from './depends/router'
import store from './depends/store'
require('./depends/components/index').default(Vue)

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

import './utils/rem';

import http from '@/utils/axios/axios'
Vue.prototype.$http = http

import directive from '@/utils/directive/directive'
Vue.use(directive)

Vue.config.productionTip = false

// 过滤
import filter from '@/utils/filters/filters'
Object.keys(filter).forEach(key => {
  Vue.filter(key, filter[key])
});

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
